<!-- 
	@Date 14-11-2013
	jsp file used to display service details
 -->
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
	<div class="sub-topic">List of services</div>
	<table width="100%" class="table-strip">
		<thead>
			<tr>
				<th width="30%"></th>
				<th width="20%" colspan="2">Port</th>
				<th width="15%"></th>
				<th width="25%"></th>
				<th width="10%"></th>
			</tr>
			<tr>
				<th>Service name</th>
				<th width="10%">Http</th>
				<th width="10%">Tcp</th>
				<th>Server IP</th>
				<th>DB Details</th>
				<th>Version</th>
			</tr>
		</thead>
		<tbody>
			<c:set var="rowNum" value="0" />
			<c:forEach items="${servicesList}" var="service">
				<c:set var="rowNum" value="${rowNum+1}" />
				<c:choose>
					<c:when test="${rowNum%2==0 }">
						<tr class="darkrow">
					</c:when>
					<c:otherwise>
						<tr class="lightrow">
					</c:otherwise>
				</c:choose>
				<td><c:out value="${service.serviceName}" /></td>
				<td style="text-align: center"><c:out
						value="${service.httpPort}" /></td>
				<td style="text-align: center"><c:out
						value="${service.tcpPort}" /></td>
				<td><c:out value="${service.serverIp}" /></td>
				<td><c:out value="${service.dbDetails}" /></td>
				<td><c:out value="${service.version}" /></td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
</body>
</html>